{% extends "ajax.base_master.html" %}

{%load encoding%}


{% block include %}
<link rel="stylesheet" href="/resources/css/sheet.css" type="text/css" />
{% endblock %}


{% block script %}

{% endblock %}

{%block body %}
<div>
	<h3>Code Details</h3>
</div>

	<div>
		<fieldset>
			<legend>기본정보</legend>
			<ul class="info">
				<div class="fieldWrapper">
					<li>코드</li>
					<li>{{object.code}}</li>
				</div>
		
				<div class="fieldWrapper">
					<li>코드명</li>
					<li>{{object.description}}</li>
				</div>
				
				<div class="fieldWrapper">
					<li>사용여부</li>
					<li>{{object.used}}</li>
				</div>
				
				<div class="fieldWrapper">
					<li>설명</li>
					<li>{{object.memo}}</li>
				</div>
		
			</ul>
		</fieldset>
		<fieldset>
			<legend>관련코드정보</legend>
			<ul class="info">
				
				<li>상위코드</li>
                <li>
                    {%if object.super_code != None%}
                        <a href="/code/info/{{object.super_code.code|encode}}">
                            ({{object.super_code.code}}) {{object.super_code.description}}
                        </a>
                    {%endif%}

                </li>
				
			</ul>
		</fieldset>
		
	</div>
	
{% endblock %}
